Integrand size = 41, antiderivative size = 221 \[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=-\frac {2 C (b \cos (c+d x))^n \sin (c+d x)}{d (1-2 n) \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 (A+C (3-2 n)-2 A n) (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-3+2 n),\frac {1}{4} (1+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1-2 n) (3-2 n) \cos ^{\frac {3}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}}+\frac {2 B (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-1+2 n),\frac {1}{4} (3+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1-2 n) \sqrt {\cos (c+d x)} \sqrt {\sin ^2(c+d x)}} \]
[Out]
Time = 0.25 (sec) , antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.098, Rules used = {20, 3102, 2827, 2722} \[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\frac {2 (-2 A n+A+C (3-2 n)) \sin (c+d x) (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (2 n-3),\frac {1}{4} (2 n+1),\cos ^2(c+d x)\right )}{d (1-2 n) (3-2 n) \sqrt {\sin ^2(c+d x)} \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 B \sin (c+d x) (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (2 n-1),\frac {1}{4} (2 n+3),\cos ^2(c+d x)\right )}{d (1-2 n) \sqrt {\sin ^2(c+d x)} \sqrt {\cos (c+d x)}}-\frac {2 C \sin (c+d x) (b \cos (c+d x))^n}{d (1-2 n) \cos ^{\frac {3}{2}}(c+d x)} \]
[In]
[Out]
Rule 20
Rule 2722
Rule 2827
Rule 3102
Rubi steps \begin{align*} \text {integral}& = \left (\cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {5}{2}+n}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx \\ & = -\frac {2 C (b \cos (c+d x))^n \sin (c+d x)}{d (1-2 n) \cos ^{\frac {3}{2}}(c+d x)}-\frac {\left (2 \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {5}{2}+n}(c+d x) \left (\frac {1}{2} \left (-2 A \left (\frac {1}{2}-n\right )-2 C \left (\frac {3}{2}-n\right )\right )-\frac {1}{2} B (1-2 n) \cos (c+d x)\right ) \, dx}{1-2 n} \\ & = -\frac {2 C (b \cos (c+d x))^n \sin (c+d x)}{d (1-2 n) \cos ^{\frac {3}{2}}(c+d x)}+\left (B \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {3}{2}+n}(c+d x) \, dx-\frac {\left (\left (-2 A \left (\frac {1}{2}-n\right )-2 C \left (\frac {3}{2}-n\right )\right ) \cos ^{-n}(c+d x) (b \cos (c+d x))^n\right ) \int \cos ^{-\frac {5}{2}+n}(c+d x) \, dx}{1-2 n} \\ & = -\frac {2 C (b \cos (c+d x))^n \sin (c+d x)}{d (1-2 n) \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (\frac {C}{1-2 n}+\frac {A}{3-2 n}\right ) (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-3+2 n),\frac {1}{4} (1+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {\sin ^2(c+d x)}}+\frac {2 B (b \cos (c+d x))^n \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-1+2 n),\frac {1}{4} (3+2 n),\cos ^2(c+d x)\right ) \sin (c+d x)}{d (1-2 n) \sqrt {\cos (c+d x)} \sqrt {\sin ^2(c+d x)}} \\ \end{align*}
Time = 0.31 (sec) , antiderivative size = 173, normalized size of antiderivative = 0.78 \[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\frac {2 (b \cos (c+d x))^n \csc (c+d x) \left (-\left ((C (-3+2 n)+A (-1+2 n)) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-3+2 n),\frac {1}{4} (1+2 n),\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}\right )+(-3+2 n) \left (C \sin ^2(c+d x)-B \cos (c+d x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {1}{4} (-1+2 n),\frac {1}{4} (3+2 n),\cos ^2(c+d x)\right ) \sqrt {\sin ^2(c+d x)}\right )\right )}{d (-3+2 n) (-1+2 n) \cos ^{\frac {3}{2}}(c+d x)} \]
[In]
[Out]
\[\int \frac {\left (\cos \left (d x +c \right ) b \right )^{n} \left (A +B \cos \left (d x +c \right )+C \left (\cos ^{2}\left (d x +c \right )\right )\right )}{\cos \left (d x +c \right )^{\frac {5}{2}}}d x\]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\int { \frac {{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \left (b \cos \left (d x + c\right )\right )^{n}}{\cos \left (d x + c\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(b \cos (c+d x))^n \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx=\int \frac {{\left (b\,\cos \left (c+d\,x\right )\right )}^n\,\left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )+A\right )}{{\cos \left (c+d\,x\right )}^{5/2}} \,d x \]
[In]
[Out]